package com.study.gank.bean

data class GankGoods(
    val _id: String,
    val createdAt: String,
    val desc: String,
    val images: List<String>?,
    val type: String,
    val url: String,
    val author: String
) {
    fun hasImage(): Boolean {
        return images != null && images.isNotEmpty()
    }

    fun create() = createdAt.substring(0, 10)
}
